import React, { Component } from 'react'
import Child from './Child'

export default class App extends Component {
  state = {
    myText: 'Hello World',
  }
  render() {
    return (
      <div>
        App
        <Child myText={this.state.myText} />
        <button onClick={() => this.handClick()}>App click</button>
      </div>
    )
  }

  handClick = () => {
    this.setState({
      myText: this.state.myText + new Date().getTime(),
    })
  }
}
